package com.seven.commons.excel.easyexcel;

import com.alibaba.excel.context.AnalysisContext;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * @工程名:common-utils
 * @author: sevenDay
 * @时间: 2019/1/4 16:35
 * @描述:
 */
@Slf4j
public class ReadExcelModelListener<StudentExcel> extends com.alibaba.excel.event.AnalysisEventListener<StudentExcel> {

    private List<StudentExcel> data = new ArrayList<StudentExcel>();

    @Override
    public void invoke(StudentExcel object, AnalysisContext context) {
        data.add(object);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {
        System.out.println("执行完毕了操作");

    }
}
